public class Circle {
    private Pointer center;
    private int radius;

    public Circle() {
        this.center =  new Pointer();
    }

    public void setCenter(int x, int y) {
        center.setX(x);
        center.setY(y);
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

    public void isPointerInCircle(Pointer pointer) {
        int x1 = pointer.getX();
        int y1 = pointer.getY();
        int x2 = center.getX();
        int y2 = center.getY();
        int dist=(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2);
        if(dist<radius*radius){
            System.out.println("in");
        }
        else if(dist==radius*radius){
            System.out.println("on");
        }
        else{
            System.out.println("out");
        }
    }
}
